package com.itheima.annotation;

import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

import com.itheima.assemble.Teacher;

public class AnnotationAssembleTest {

	public static void main(String[] args) {
		String xmlPath="/com/itheima/annotation/beans6.xml";
		ApplicationContext applicationContext = new ClassPathXmlApplicationContext(xmlPath);
		UserService userService = (UserService)applicationContext.getBean("userService");
		userService.save();
	}

}
